﻿using Kimd.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Kimd.Communication
{
    public interface ICommunicationShow
    {
        string Name { get; set; }
        SerializableDictionary<string, string> SendCmd { get; set; }
        CommTypeEnum CommType { get; }
        bool IsOpenFlag { get; }
        Form GetDebugForm();
        List<string> GetShowList();
        string GetTreeNodeShowStr();
        object GetConfig();
        void SetConfig(object config);
        void SetOpenOrClose(OpenOrClose openOrClose);
    }
    public enum CommTypeEnum
    {
        TCPClient,
        TCPServer,
        ModbusTCP,
        SerialPort,
        PLC
    }

    public enum OpenOrClose
    {
        Open,
        Close
    }
}
